package com.jeecg.p3.dzdp.dao.impl;

import java.util.List;

import org.jeecgframework.p3.core.utils.common.PageQuery;
import org.jeecgframework.p3.core.utils.common.PageQueryWrapper;
import org.jeecgframework.p3.core.utils.persistence.mybatis.GenericDaoDefault;
import org.springframework.stereotype.Repository;

import com.jeecg.p3.dzdp.dao.WxActDzdpOptDao;
import com.jeecg.p3.dzdp.entity.WxActDzdpOpt;
@Repository("wxActDZDPOptDaoImpl")
public class WxActDzdpOptDaoImpl extends GenericDaoDefault<WxActDzdpOpt> implements WxActDzdpOptDao {

	@Override
	public Integer count(PageQuery<WxActDzdpOpt> pageQuery) {
		return (Integer) super.queryOne("count",pageQuery);
	}

	@Override
	public List<WxActDzdpOpt> queryPageList(PageQuery<WxActDzdpOpt> pageQuery, Integer itemCount) {
		PageQueryWrapper<WxActDzdpOpt> wrapper=new PageQueryWrapper<WxActDzdpOpt>(pageQuery.getPageNo(),pageQuery.getPageSize(),itemCount,pageQuery.getQuery());
		return (List<WxActDzdpOpt>)super.query("queryPageList",wrapper);
	}
	@Override
	public List<WxActDzdpOpt> queryOpts(String jwid){
		return (List<WxActDzdpOpt>)super.query("queryopts",jwid);
	}

	
}
